package yzserver.sx4a.domain;

import yzserver.sx4a.form.Organization;

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 14-8-15
 * Time: 上午10:27
 * To change this template use File | Settings | File Templates.
 */
public class OrganizationDomain {
    private String ORGID;  //组织ID注意为20位的编码例如00410088002900000000
    private String ORGNAME;//组织名称
    private String ORGPARENT;//父组织ID注意为20位的编码例如00410088002900000000
    private String DISPLAYNAME;//组织全名
    private String OPUSER;//操作人信息
    private String STARTDATE;//生效时间YYYY-MM-dd 如2010-03-08
    private String ENDDATE;//失效时间yyyy-mM-dd 如2010-03-08
    private String UPDATEDATE;//更新时间YYYy-MM-dd HH:mm:ss，如2010-03-08
    private String ENABLE;//状态（0是有效，1是失效）
    private String ORGNUM;//组织非20位编码的id例如470（外部组织无）
    private String ORGLEVEL;//组织级别例如上市省公司二级（外部组织无）
    private String SORT;//排序

    public OrganizationDomain() {

    }
    public OrganizationDomain(Organization org) {
        this.ORGID = org.getOrgid();
        this.ORGNAME = org.getOrgname();
        this.ORGPARENT = org.getOrgparent();
        this.DISPLAYNAME = org.getDisplayname();
        this.OPUSER = org.getOpuser();
        this.STARTDATE = org.getStartdate();
        this.ENDDATE = org.getEnddate();
        this.UPDATEDATE = org.getUpdatedate();
        this.ENABLE = org.getEnable();
        this.ORGNUM = org.getOrgnum();
        this.ORGLEVEL = org.getOrglevel();
        this.SORT = org.getSort();
    }
    public OrganizationDomain(yzserver.sx4a.org.Organization org) {
        this.ORGID = org.getId();
        this.ORGNAME = org.getName();
        this.ORGPARENT = org.getParentid();
        this.DISPLAYNAME = org.getDisplayname();
        this.STARTDATE = org.getStartdate();
        this.ENDDATE = org.getEnddate();
        this.UPDATEDATE = org.getUpdatedate();
        this.ENABLE = org.getOrgstatus();
        this.ORGNUM = org.getOrgnum();
        this.ORGLEVEL = org.getOrglevel();
        this.SORT = org.getSort();
    }
    public String getORGID() {
        return ORGID;
    }

    public void setORGID(String ORGID) {
        this.ORGID = ORGID;
    }

    public String getORGNAME() {
        return ORGNAME;
    }

    public void setORGNAME(String ORGNAME) {
        this.ORGNAME = ORGNAME;
    }

    public String getORGPARENT() {
        return ORGPARENT;
    }

    public void setORGPARENT(String ORGPARENT) {
        this.ORGPARENT = ORGPARENT;
    }

    public String getDISPLAYNAME() {
        return DISPLAYNAME;
    }

    public void setDISPLAYNAME(String DISPLAYNAME) {
        this.DISPLAYNAME = DISPLAYNAME;
    }

    public String getOPUSER() {
        return OPUSER;
    }

    public void setOPUSER(String OPUSER) {
        this.OPUSER = OPUSER;
    }

    public String getSTARTDATE() {
        return STARTDATE;
    }

    public void setSTARTDATE(String STARTDATE) {
        this.STARTDATE = STARTDATE;
    }

    public String getENDDATE() {
        return ENDDATE;
    }

    public void setENDDATE(String ENDDATE) {
        this.ENDDATE = ENDDATE;
    }

    public String getUPDATEDATE() {
        return UPDATEDATE;
    }

    public void setUPDATEDATE(String UPDATEDATE) {
        this.UPDATEDATE = UPDATEDATE;
    }

    public String getENABLE() {
        return ENABLE;
    }

    public void setENABLE(String ENABLE) {
        this.ENABLE = ENABLE;
    }

    public String getORGNUM() {
        return ORGNUM;
    }

    public void setORGNUM(String ORGNUM) {
        this.ORGNUM = ORGNUM;
    }

    public String getORGLEVEL() {
        return ORGLEVEL;
    }

    public void setORGLEVEL(String ORGLEVEL) {
        this.ORGLEVEL = ORGLEVEL;
    }

    public String getSORT() {
        return SORT;
    }

    public void setSORT(String SORT) {
        this.SORT = SORT;
    }
}
